
import java.util.ArrayList;
import java.util.List;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author kylin
 */
public class UserServiceImpl implements IUserService {  
  
    @Override  
    public List<User> getUsers() {  
        List<User> list = new ArrayList<>();  
        list.add(new User("ricky", "12345"));  
        list.add(new User("kobe", "aaa"));  
        list.add(new User("jordan", "root"));  
        return list;  
    }  
  
    @Override  
    public int update(User user) {  
        System.out.println("update user = [" + user + "]");  
        user.setPassword("hello");  
        return 1;  
    }  
}  